package org.example.leetCode;

public class reverseString {
    public static void main(String[] args) {

    }

    public void reverseString1(char[] s) {
        int i =0;
        int j = s.length - 1;
        while (i<j){
            char c = s[i];
            s[i]=s[j];
            s[j]=c;
            j--;
        }
    }
}
